Skip to main content

Mark Mail Message Read/Unread

AutomatR.Outlook.MarkMailAsReadUnread

The "Mark Mail Message Read/Unread" activity in AutomatR is part of the Outlook activities package, allowing the marking of an email message in Microsoft Outlook as read or unread. This activity provides flexibility in managing the read status of mail messages within automation workflows.

Properties

NameDescription
Input
Mail MessageThe MailItem object representing the mail message in Outlook to mark as read or unread. It is a required argument.
Mark As ReadSpecifies whether to mark the mail message as read. If set to true, the mail message will be marked as read.
Mark As UnReadSpecifies whether to mark the mail message as unread. If set to true, the mail message will be marked as unread.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name.
Optional
DelayEnter the wait time in seconds (Example: 5 seconds, i.e., 5) to start the activity.
Output
ResponseA boolean value indicating whether the marking of the mail message as read or unread was successful. It will be set to true if the operation was successful.

How to use:

  1. Drag and drop the "Mark Mail Message Read/Unread" activity onto the workflow.
  2. Configure the properties by specifying the mail message, and choose whether to mark it as read or unread.
  3. Optionally, configure the delay and customize the display name.
  4. Execute the workflow to mark the specified mail message as read or unread in Outlook.

Example:

Consider an example where the "Mark Mail Message Read/Unread" activity is used to mark a specific mail message as read:

Mark Mail Message Read/Unread:
Display Name: "Mark Important Email"
Mail Message: importantEmail
Mark As Read: true
Response: markingSuccessful

In this example, the activity marks the importantEmail as read, and the result of the operation (success or failure) is stored in the Boolean variable markingSuccessful for further handling in the workflow.